package com.mstar.qs.common.jdbc;

import java.io.Serializable;

import com.mstar.qs.common.jdbc.JDBCManager.DBProvider;

public class DatabaseConnectiveInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2173608134904916824L;

	private String host;
	private int port;
	private String schema;
	private String user;
	private String pwd;
	private DBProvider dbType=DBProvider.MYSQL;

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getSchema() {
		return schema;
	}

	public void setSchema(String schema) {
		this.schema = schema;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public DBProvider getDbType() {
		return dbType;
	}

	public void setDbType(String dbType) {
		if (JDBCManager.database_type_mssql.equals(dbType))
			this.dbType = DBProvider.MSSQL;
		else
			this.dbType = DBProvider.MYSQL;
	}
	public void setDbType(DBProvider dbType) {

			this.dbType = dbType;
	}

}
